package com.yld.scott.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate5.support.HibernateDaoSupport;
import com.yld.scott.dao.CustomerDao;
import com.yld.scott.domain.Customer;

public class CustomerDaoImpl extends HibernateDaoSupport implements CustomerDao {

	@SuppressWarnings("unchecked")
	public List<Customer> findAll() {
		return (List<Customer>)this.getHibernateTemplate().find("from Customer");
	}

}

